import { defineStore } from 'pinia'

export const useUserInfoStore = defineStore('app-userInfo', {
	state: () => {
		return {
			myAge: 30,
			userInfo: {
				username: '张三',
				age: 18,
				sex: '男',
			},
		}
	},
	getters: {
		addAge: (state) => state.myAge * 10,
	},
})
